import request from '@/utils/request'

// 查询车辆型号列表
export function listcarType(query) {
  return request({
    url: '/enterprise/carType/list',
    method: 'get',
    params: query
  })
}

// 查询车辆型号详细
export function getcarType(id) {
  return request({
    url: '/enterprise/carType/' + id,
    method: 'get'
  })
}

// 新增车辆型号
export function addcarType(data) {
  return request({
    url: '/enterprise/carType',
    method: 'post',
    data: data
  })
}

// 修改车辆型号
export function updatecarType(data) {
  return request({
    url: '/enterprise/carType',
    method: 'put',
    data: data
  })
}

// 删除车辆型号
export function delcarType(id) {
  return request({
    url: '/enterprise/carType/' + id,
    method: 'delete'
  })
}

// 导出车辆型号
export function exportcarType(query) {
  return request({
    url: '/enterprise/carType/export',
    method: 'get',
    params: query
  })
}